
<?php echo $form->renderHiddenFields(true) ?>

<fieldset class="one_half <?php echo $form['type']->getValue() ?> <?php if ($form['type']->getValue() == 'shipping') echo 'last'; ?>"
	  style="width:413px !important; <?php echo ($form['type']->getValue() == 'shipping') ? 'display:none;' : ''; ?>">
    <legend><?php echo __($form['type']->getValue() . " aadress") ?></legend>
    <div id="<?php echo $form['type']->getValue(); ?>_address_error"></div>
    <p>
	<?php echo $form['is_company']->renderLabel(); ?><br>
	<?php echo $form['is_company']->render(array('class' => 'checkbox')) ?><br>
    </p>
    <p class="fname">
	<label for="text_field"><?php echo __('firstname') ?></label><br>
	<?php echo $form['first_name']->render(array('class' => 'textfield')) ?><br>
    </p>
    <p class="lname">
	<label for="text_field"><?php echo __('lastname') ?></label><br>
	<?php echo $form['last_name']->render(array('class' => 'textfield')) ?><br>
    </p>
    <p class="cname" style="display:none;">
	<label for="text_field"><?php echo __('companyname') ?></label><br>
	<?php echo $form['company_name']->render(array('class' => 'textfield')) ?><br>
    </p>
    <p class="idcode">
	<label for="text_field"><?php echo __('identitycode') ?></label><br>
	<?php echo $form['identity_code']->render(array('class' => 'textfield')) ?><br>
    </p>    
    <p class="regcode" style="display:none;">
	<label for="text_field"><?php echo __('regcode') ?></label><br>
	<?php echo $form['reg_code']->render(array('class' => 'textfield')) ?><br>
    </p>
    <p>
	<label for="text_field"><?php echo __('email') ?></label><br>
	<?php echo $form['email']->render(array('class' => 'textfield')) ?><br>
    </p>
    <p>
	<label for="text_field"><?php echo __('phone') ?></label><br>
	<?php echo $form['phone']->render(array('class' => 'textfield')) ?><br>
    </p>
    <p>
	<label for="text_field"><?php echo __('adress') ?></label><br>
	<?php echo $form['address']->render(array('class' => 'textfield')) ?><br>
    </p>
    <p>
	<label for="text_field"><?php echo __('city') ?></label><br>
	<?php echo $form['city']->render(array('class' => 'textfield')) ?><br>
    </p>
    <p>
	<label for="text_field"><?php echo __('region') ?></label><br>
	<?php echo $form['state']->render(array('class' => 'textfield')) ?><br>
    </p>
    <p>
	<label for="text_field"><?php echo __('zip') ?></label><br>
	<?php echo $form['zip']->render(array('class' => 'textfield')) ?><br>
    </p>
<?php if ($form['type']->getValue() == 'billing'): ?>
    <p>
	<label for="text_field"><?php echo __('shipping not same as billing') ?></label><br>
	<?php echo $form['addresses_different']->render(array('class' => 'checkbox')) ?><br>
    </p>
<?php endif;?>
</fieldset>
